﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Site.Master" AutoEventWireup="true"
    CodeBehind="UserOrder.aspx.cs" Inherits="DaoYou.Web.Account.UserOrder" %>

<%@ Register Src="../Controller/ApplyDaoYou.ascx" TagName="ApplyDaoYou" TagPrefix="uc1" %>
<asp:Content ID="Content1" ContentPlaceHolderID="HeadContent" runat="server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">
    <section id="content-container" class="clearfix">
        <div id="main-wrap" class="clearfix">
            <aside class="subnav_cont sidebar">
                <div class="subnav">
                    <ul>
                        <li><a href="UserCenter.aspx"><span>我的基本信息</span></a></li>
                        <li><a href="UpHeadImg.aspx"><span>我的头像</span></a></li>
                        <% if (base.UserType == 1)
                           {%>
                        <li><a href="UserGuiderInfo.aspx"><span>我的导游信息</span></a></li>
                        <%} %>
                        <li><a href="UserOutPlan.aspx"><span>我的出行计划</span></a></li>
                        <li><a href="UserTimeoutOrder.aspx"><span>我的已出行订单</span></a></li>
                        <li class="current_subpage"><a href="UserOrder.aspx"><span>我的未出行订单</span></a></li>
                        <% if (base.UserType != 1)
                           {%>
                        <li>
                            <uc1:ApplyDaoYou ID="ApplyDaoYou1" runat="server" />
                        </li>
                        <%} %>
                    </ul>
                </div>
                <!-- END subnav -->
            </aside>
            <div class="page_content_right sub-content">
                <ul>
                    <% if (this.CalendarList.Count > 0)
                       {%>
                    <%foreach (var c in this.CalendarList)
                      {
                          RenChangYou.Model.DY_Order order = new RenChangYou.BLL.DY_Order().GetModelByCache(c.OrderNo);
                          RenChangYou.Model.DY_User user = new RenChangYou.BLL.DY_User().GetModelByCache(base.UserType == 1 ? order.CustomerUserName : c.GuideUserName);
                    %>
                    <li>从&nbsp;<%= c.StartDate.Value.ToString("yyyy-MM-dd") %>&nbsp;到&nbsp;<%=c.EndDate.Value.ToString("yyyy-MM-dd")%>，订单号：<%= c.OrderNo %>【<%= RenChangYou.Common.StringPlus.GetEnumDescription(order.OrderStatus) %>】，
                        <% if (base.UserType == 1 && !string.IsNullOrWhiteSpace(user.FullName))
                           {%>
                        顾客：<%= user.FullName%>
                        <%}
                           else
                           { %>
                        导游：<%= user.FullName %>
                        <%} %>
                    </li>
                    <%} %>
                    <%} %>
                </ul>
            </div>
        </div>
    </section>
    <script type="text/javascript" src="<%= Page.ResolveUrl("~/js/custom-main.js")%>"></script>
</asp:Content>
